import Vue from 'vue'
import VueRouter from "vue-router";
import NotFound from "@/views/NotFound";
import Home from "@/views/Home";
import Student from "@/views/Student";

Vue.use(VueRouter)

const routes = [
    {
        path:"/",
        component: Home
    },
    {
        path:"/",
        redirect:"/student"
    },
    {
        path:"/student",
        component:Student
    },
    {
        path:"*",
        component: NotFound
    }
]

const router=new VueRouter({
    routes:routes
});

export default router;
